<?php
Page::getInstance()->addScript(URL_BASE_JAVASCRIPT . '/list.js');
switch (__ACTION__) {
    
    CASE "TABLE_DELETE":
        $content = TableManager::getInstance()->deleteTable($_REQUEST['table_id']);
        Response::getInstance()->setContentType('text/xml');
        break;
    CASE "TABLE_EXPOSRTCVS":
        $exportManager = new ExportManager($_REQUEST['id']);
        exit;
        break;
    case 'LIST':
    default :
        $content = TableManager::getInstance()->getTableListView();

        break;
}

?>
